package org.example.builder;

/**
 * @author Zhang Yu
 * @description: TODO
 * @date 2024/5/20 13:47
 */
public class Test {
    public static void main(String[] args) {
        Director director1 = new Director(new ConcreteBuilder1());
        Product product1 = director1.construct();
        System.out.println("product1 = " + product1);
        System.out.println("====================================");

        Director director2 = new Director(new ConcreteBuilder2());
        Product product2 = director2.construct();
        System.out.println("product2 = " + product2);
        System.out.println("====================================");
    }
}
